package com.tensquare.article.client;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.tensquare.article.client.impl.NoticeClientImpl;
import com.tensquare.article.pojo.TbNotice;
import com.tensquare.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "tensquare-notice",fallback = NoticeClientImpl.class)
public interface NoticeClient {

    @RequestMapping(value = "/notice",method = RequestMethod.POST)
    public Result save(@RequestBody TbNotice notice);

}
